package cn.com.connext.scrm.repository.master;

import cn.com.connext.scrm.domain.master.PointManager;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 2 * @Author: shawn
 * 3 * @Date: 2020/8/11 4:14 下午
 * 4
 */
@Repository
public interface PointManagerRepository extends JpaRepository<PointManager, Integer>, JpaSpecificationExecutor {
    @Query(value = "select * from point_manager where is_enable = 1 ", nativeQuery = true)
    List<PointManager> findEnable();
}
